<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
   
    <%@ include file="/easyprepay/jsp/common/head.jsp"%>
    <%@ taglib uri="/easyprepay" prefix="easy"%>
    <title>添加主菜单</title>
     <script type="text/javascript">
    	function getReturn(){
    		location.href="<%=basePath%>userRole.do?method=viewAllMenu&";
    	}
    	function addMenu(){
    		var menuName = document.getElementById("menuName").value;
    		if(!menuName==''){
    			
    			location.href="<%=basePath%>userRole.do?method=addMenu&menuName="+menuName;
    		}else{
    			alert("请正确的填写主菜单的名称");
    		}
    		
    	}
    </script>
	

  </head>
  
  <body>
    	<table >
    		<tr><td>添加主菜单</td></tr>
    		<tr><td>主菜单名称</td></tr>
    		<tr><td><input type="text" id="menuName" name="menuName" ></td></trd>
    		<tr><td><input type="button" onclick="addMenu()" value="添加"><input type="reset" value="取消"><input type="button" value="返回" onclick="getReturn()"></td></tr>
    	</table>
  </body>
</html>
